package com.applink.sell_proof;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.view.Window;
import android.widget.TextView;

import com.applink.sell_proof.constant.IntentKey;

public class NetworkNotificationDialog extends FragmentActivity implements
		android.view.View.OnClickListener {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.network_dialog);
		String message = getIntent().getStringExtra(IntentKey.NETWORK_MESSAGE);
		((TextView) findViewById(R.id.message)).setText(message);
		findViewById(R.id.btn_close).setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_close:
			finish();
			break;
		default:
			break;
		}
	}

}
